package com.ruoyi.fly.service;


import com.ruoyi.common.core.domain.R;
import com.ruoyi.fly.domain.AppletServer;
import com.ruoyi.fly.domain.vo.AppletServerSearchVo;
import com.ruoyi.fly.domain.vo.AppletServerVo;
import com.ruoyi.fly.domain.vo.ServerCategoryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface AppletServerService {

    /**
     * 根据id查询服务详情
     * @param id
     * @return
     */
    AppletServer selectAppletServerById(String id);

    /**
     * 查询服务列表
     * @param appletServerSearchVo
     * @return
     */
    List<AppletServerVo> selectAppletServerList(AppletServerSearchVo appletServerSearchVo);

    /**
     * 添加服务
     * @param appletServer
     * @return
     */
    R insertAppletServer(AppletServer appletServer);

    /**
     * 修改服务
     * @param appletServer
     * @return
     */
    R updateAppletServer(AppletServer appletServer);

    /**
     * 上架服务
     * @param id
     * @return
     */
    R onlineProduct(String id);

    /** 下架服务
     * @param id
     * @return
     */
    R offlineProduct(String id);

    /**
     * 删除服务
     * @param id
     * @return
     */
    R deleteAppletServerById(String id);

    /**
     * 批量删除服务
     * @param ids
     * @return
     */
    R deleteAppletServerByIds(String[] ids);
}
